<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px"><head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/project/ui-input-v3.css">
    <link rel="stylesheet" href="css/project/ui-res-v3.css">
    <link rel="stylesheet" href="css/project/ui-color-v3.css">
    <link rel="stylesheet" href="css/project/ui-btn-v3.css">
    <link rel="stylesheet" href="css/ui-base.css">
   <link rel="stylesheet" href="css/ui-box.css">
   <link rel="stylesheet" href="css/project/style.css">
   <link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
	<script src="js/zy_json.js"></script>
    <script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script type="text/javascript" src="js/JsonSQL/jsonsql-0.1.js"></script>
	<script src="js/talkingdata.js"></script>
	<style>
	*ul{ list-style:none;}
	.ufdcleft{padding:0.5em 0.5em 0.5em 0;}
	.ufdcleft ul li{ height:1.5em; line-height:0.9em;}
	.ufdcleftf1{ color:#ff0000;}
	.ufdcleftf2{ color:#00cc00}
	.ufdccenter ul li{height:1.5em; line-height:1.5em}
	.ufdccenter1{ color:#0000ff;font-size:0.8125em}
	.ufdccenter2{ color:#990000;font-size:0.8125em}
	.ufdccenter3{ color:#999999;font-size:0.8125em}
	</style>
</head>
<body class="um-vp" ontouchstart>
	
<div id="page_1" class="ub ub-ver um-vp">
<div id="unnormal_fightresult" >
</div>
</div>	
</body>

<script>
zy_init();
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("0");
		IC.talkingDataCount("不正常航班","0013");
	}
	Loading(0);
	unnormal_fightresult();
}
function unnormal_fightresult(){	
			 var strx = "";
			 var json= localStorage.getItem("json"); 
			 var objdata = JSON.parse(json);
			for(var i=0;i<objdata.length;i++)	
			 {
			 		var orderx=(parseInt(i)+1)%4;
					if(parseInt(orderx)==0)
					{
						orderx= 4;
					}
					
				    var publishInfo= objdata[i].publishInfo
					if(publishInfo=="" || publishInfo==" " || publishInfo=="undefined" ||  publishInfo==undefined)//不正常原因
					{
						publishInfo = "&nbsp; "
					}
					
					var deleteFlag= objdata[i].deleteFlag
					if(deleteFlag=='CNL')
					{
					   deleteFlag='取消'
					}
					else if(deleteFlag=='OP')
					{
					   deleteFlag='延误'
					}
					else if(deleteFlag=='SHA')
					{
					   deleteFlag='始发站机场变更'
					}
					else if(deleteFlag=='RTB')
					{
					   deleteFlag='返航'
					}
					else if(deleteFlag=='ALT')
					{
					   deleteFlag='备降'
					}
				 	else{
						deleteFlag = "&nbsp; "
					}
					
					
					var planDeptTime= objdata[i].planDeptTime
					if(planDeptTime=="" || planDeptTime==" " || planDeptTime=="undefined" ||   planDeptTime==undefined)//计划起飞时间
					{
						planDeptTime = "&nbsp; "
					}
					else
					{
					       planDeptTime = planDeptTime.substring(11,16);
					}
					var planArrivTime= objdata[i].planArrivTime
					if(planArrivTime=="" || planArrivTime==" " || planArrivTime=="undefined" ||   planArrivTime==undefined)//计划到达时间
					{
						planArrivTime = "&nbsp; "
					}
					else
					{
					       planArrivTime = planArrivTime.substring(11,16);
					}
					var prdtDeptTime= objdata[i].prdtDeptTime
					if(prdtDeptTime=="" || prdtDeptTime==" " || prdtDeptTime=="undefined" ||   prdtDeptTime==undefined)//预计起飞时间
					{
						prdtDeptTime = "&nbsp; "
					}
					else
					{
					       prdtDeptTime = prdtDeptTime.substring(11,16);
					}
					var prdtArrivTime= objdata[i].prdtArrivTime
					if(prdtArrivTime=="" || prdtArrivTime==" " || prdtArrivTime=="undefined" ||   prdtArrivTime==undefined)//预计到达时间
					{
						prdtArrivTime = "&nbsp; "
					}
					else
					{
					       prdtArrivTime = prdtArrivTime.substring(11,16);
					}
					var realDeptTime= objdata[i].realDeptTime
					if(realDeptTime=="" || realDeptTime==" " || realDeptTime=="undefined" ||   realDeptTime==undefined)//实际起飞时间
					{
						realDeptTime = "&nbsp; "
					}
					else
					{
					       realDeptTime = realDeptTime.substring(11,16)+'-';
					}
					var realArrivTime= objdata[i].realArrivTime
					if(realArrivTime=="" || realArrivTime==" " || realArrivTime=="undefined" ||   realArrivTime==undefined)//实际到达时间
					{
						realArrivTime = "&nbsp; "
					}
					else
					{
					       realArrivTime = realArrivTime.substring(11,16);
					}
					strx += '<div class="ub ubb " style=" border-bottom:1px #ccc solid">'
    				strx += '<div class="zv_lbg'+orderx+'"></div>'
    				strx += '<div class="ub ub-f1 ub-ver ufdcleft tx-c">'
        			strx += '<ul>'
            		strx += '<li style="color:#ff0000">'+objdata[i].flightCarrier+objdata[i].flightNo+'</li>'
               		strx += '<li style="color:#00cc00">'+objdata[i].flightDate+'</li>'
          		    strx += '</ul>'
       				strx += '</div>'
        			strx += '<div class="ub ub-f1 ub-ver ufdccenter tx-c">'
        			strx += '<ul>'
            		strx += '<li class="ufdccenter1">'+objdata[i].deptPort+'-'+objdata[i].arrivPort+'</li>'
                	strx += '<li class="ufdccenter2">'+deleteFlag+'</li>'
                	strx += '<li class="ufdccenter3">'+publishInfo+'</li>'
            		strx += '</ul>'
       	 			strx += '</div>'
       				strx += '<div class="ub ub-f1 ub-ver ufdccenter tx-c">'
        			strx += '<ul>'
            		strx += '<li class="ufdccenter1">'+planDeptTime+'-'+planArrivTime+'</li>'
                	strx += '<li class="ufdccenter2">'+prdtDeptTime+'-'+prdtArrivTime+'</li>'
               	 	strx += '<li class="ufdccenter3">'+realDeptTime+realArrivTime+'</li>'
           	 		strx += '</ul>'
        			strx += '</div>'
   					strx += '</div>'
			 }
			 Loading(-1);
			 $$("unnormal_fightresult").innerHTML=strx;
    		$("body").animate({opacity:1},500);
}	
</script>
</html>
